import { Group } from '@/components/pro-panel/index.typing';
import { useStageStore } from '@/store/stage';

const usearAument = (): Group => {
  const stageStore = useStageStore();
  return {
    title: '参数',
    key: 'describe',
    collapsed: false,
    columns: [
      {
        label: '半长轴长度',
        prop: 'semiMajorAxis',
        type: 'input-number',
        formProps: {
          controls: false,
          unit: '米',
        },
      },
      {
        label: '半短轴长度',
        prop: 'semiMinorAxis',
        type: 'input-number',
        formProps: {
          controls: false,
          unit: '米',
          min: stageStore.layerData.data?.semiMinorAxis,
        },
      },
      {
        label: '速度',
        prop: 'speed',
        type: 'input-number',
        formProps: {
          controls: false,
          unit: '米',
        },
      },
      {
        label: '圆形个数',
        prop: 'circleCount',
        type: 'input-number',
        formProps: {
          controls: false,
          unit: '个',
        },
      },
    ],
  };
};

export default usearAument;
